import request from '@/utils/request'

// 查询指标管理列表
export function listZbmanage(query) {
  return request({
    url: '/business/zbmanage/list',
    method: 'get',
    params: query
  })
}

// 查询指标管理详细
export function getZbmanage(zbId) {
  return request({
    url: '/business/zbmanage/' + zbId,
    method: 'get'
  })
}
// 复制指标管理详细
export function copyZbmanage(zbId) {
  return request({
    url: '/business/zbmanage/copy/' + zbId,
    method: 'get'
  })
}
// 新增指标管理
export function addZbmanage(data) {
  return request({
    url: '/business/zbmanage',
    method: 'post',
    data: data
  })
}

// 修改指标管理
export function updateZbmanage(data) {
  return request({
    url: '/business/zbmanage',
    method: 'put',
    data: data
  })
}

// 删除指标管理
export function delZbmanage(zbId) {
  return request({
    url: '/business/zbmanage/' + zbId,
    method: 'delete'
  })
}
